<?php
namespace AbstractFactoryPattern;

use AbstractFactoryPattern\Shape\SquareShape;
use AbstractFactoryPattern\Shape\CircleShape;

class ShapeFactory extends AbstractFacory {

    public function getColor($colorType) {
        
        return null;
    
    }

    public function getShape($shapeType) {
    
        if ('square' == $shapeType) {
            return new SquareShape();
        } elseif ('circle' == $shapeType) {
            return new CircleShape();
        }
        return null;

    }

}


